package com.zhentao.test;

/**
 * @Date 2024/4/8 15:47
 * @Author xdm
 **/
//饿汉式
public class SingleObject02 {

    private SingleObject02(){};

    private static SingleObject02 instance=new SingleObject02();

    private static SingleObject02 getInstance(){
        return instance;
    }
}
